<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<HTML>
<HEAD>
<base href="<%=basePath %>">
<title>right</title>

<link href="<%=basePath %>attend/frame/images/skin.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>attend/css/tab.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<%=basePath %>attend/js/tab.js"></script>
 <script type="text/javascript">
		function reloadGo() {
		var txtCurrentPage = document.getElementById("txtCurrentPage").value;
		var type = "^\\d+$";
		var re = new RegExp(type);
		if (txtCurrentPage.match(re) == null) {
			document.getElementById("txtCurrentPage").value="";
			alert("请输入整数!");
			return;
		}
		
		window.location.href = "ShowUser?pagerMethod=go&currentPage=" + txtCurrentPage;
	}
</script>
</HEAD>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=basePath %>attend/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=basePath %>attend/frame/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">用户管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=basePath %>attend/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=basePath %>attend/frame/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
<%--         内嵌代码 Start--%>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="30"><img src="<%=basePath %>attend/images/tab_03.gif" width="15" height="30" /></td>
	        <td align="center" background="<%=basePath %>attend/images/tab_05.gif">&nbsp;</td>
	        </tr>
	    </table></td>
	        <td width="14"><img src="<%=basePath %>attend/images/tab_07.gif" width="14" height="30" /></td>
	  </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="9" background="<%=basePath %>attend/images/tab_12.gif">&nbsp;</td>
	        <td bgcolor="#f3ffe3">
<%--	        内嵌Table Start--%>
	        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onMouseOver="changeto()" onMouseOut="changeback()">
	          <tr>
	            <th width="10%" height="26" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">姓  名</div></th>
	            <th width="10%" height="18" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">考勤编号</div></th>
	            <th width="20%" height="18" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">校  区</div></th>
	            <th width="16%" height="18" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">部  门</div></th>
	            <th width="18%" height="18" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">职  位</div></th>
	            <th width="10%" height="18" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">OAID</div></th>
	            <th width="14%" height="18" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">操 作</div></th>
	          </tr>
	          <c:forEach items="${userlist}" var="userlist">
	          <tr>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">${userlist.name}</td>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">${userlist.badgenumber}</td>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">${userlist.schId}</td>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">${userlist.subdept}</td>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">${userlist.postId}</td>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">${userlist.oaId}</td>
	            <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">
		            <c:choose>
	            		<c:when test="${userlist.status==1}"><a href="UpUser?userID=${userlist.userId}"><img src="<%=basePath %>attend/images/okay.png" border="0" width="16" height="16" title="在职，点击修改！"></a></c:when>
	            		<c:when test="${userlist.status==0}"><a href="UpRemove?userID=${userlist.userId}"><img src="<%=basePath %>attend/images/remove.png" border="0" width="16" height="16" title="离职，点击修改！"></a></c:when>	
	            	</c:choose>&nbsp;<a href="<%=basePath %>attend/user/upUser.jsp?userID=${userlist.userId}"><img src="<%=basePath %>attend/images/edit.png" border="0" width="16" height="16" title="点击编辑！"></a>&nbsp;
	            	<c:choose>
	            		<c:when test="${userlist.oaId==0||userlist.postId==0}"><a href="Synch?u=${userlist.userId }&name=${userlist.name}&currentPage=${page.currentPage}"><img src="<%=basePath %>attend/images/weitongbu.gif" border="0" width="16" height="16" title="点击同步OA！"></a></c:when>
	            		<c:otherwise><img src="<%=basePath %>attend/images/yitongbu.gif" border="0" width="16" height="16" title="已同步OA！"></c:otherwise>
	            	</c:choose>
            	</td>
	          </tr>
	          </c:forEach>
	        </table>
<%--	        内嵌Table end--%>
	        </td>
	        <td width="9" background="<%=basePath %>attend/images/tab_16.gif">&nbsp;</td>
	      </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="29"><img src="<%=basePath %>attend/images/tab_20.gif" width="15" height="29" /></td>
	        <td background="<%=basePath %>attend/images/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <tr>
	            <td width="25%" height="29" nowrap="nowrap"><span class="STYLE1">共<font color="#FF0000">${page.totalRows}</font>条纪录，当前第<font color="#0066FF">${page.currentPage}</font>/<font color="#0066FF">${page.totalPages}</font>页，每页<font color="#FF0000">${page.pageSize}</font>条纪录</span></td>
	            <td width="75%" valign="top" class="STYLE1"><div align="right">
	              <table width="352" height="20" border="0" cellpadding="0" cellspacing="0">
	                <tr>
	                  <td width="62" height="22" valign="middle"><div align="right"><a href="ShowUser?pagerMethod=first"><img src="<%=basePath %>attend/images/first.gif" width="37" height="15" border="0" /></a></div></td>
	                  <td width="50" height="22" valign="middle"><div align="right"><a href="ShowUser?pagerMethod=previous&currentPage=${page.currentPage}"><img src="<%=basePath %>attend/images/back.gif" width="43" height="15" border="0" /></a></div></td>
	                  <td width="54" height="22" valign="middle"><div align="right"><a href="ShowUser?pagerMethod=next&currentPage=${page.currentPage}"><img src="<%=basePath %>attend/images/next.gif" width="43" height="15" border="0" /></a></div></td>
	                  <td width="49" height="22" valign="middle"><div align="right"><a href="ShowUser?pagerMethod=last"><img src="<%=basePath %>attend/images/last.gif" width="37" height="15" border="0" /></a></div></td>
	                  <td width="59" height="22" valign="middle"><div align="right" class="STYLE1">转到第</div></td>
	                  <td width="25" height="22" valign="middle" class="STYLE1">
		                  <span class="STYLE1">
		                  	<input id="txtCurrentPage" type="text" title="请输入整数哦！" style="height:18px; width:30px;" size="5" />
		                  </span>
	                  </td>
	                  <td width="23" height="22" valign="middle" class="STYLE1">页</td>
	                  <td width="30" height="22" valign="middle"><a href="javascript:void(0);" onClick="reloadGo();"><img src="<%=basePath %>attend/images/go.gif" width="37" height="15" border="0" /></a></td>
	                </tr>
	              </table>
	            </div></td>
	          </tr>
	        </table></td>
	        <td width="14"><img src="<%=basePath %>attend/images/tab_22.gif" width="14" height="29" /></td>
	      </tr>
	    </table></td>
	  </tr>
	</table>
<%--	内嵌代码 end--%>
	</td>
    <td background="<%=basePath %>attend/frame/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=basePath %>attend/frame/images/buttom_bgs.gif"><img src="<%=basePath %>attend/frame/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</HTML>